package miku.firstgame.net.pack
{
	import miku.firstgame.constrants.ProtocalConstants;
	import miku.firstgame.net.ByteArrayEx;

	public class SeeMapResponsePack extends AbstractReponsePack
	{
		public var isGold:Boolean;
		/**
		 * 方向，1,表示上面，2表示中间，3表示下面
		 */
		public var direct:int;

		public function SeeMapResponsePack(data:ByteArrayEx)
		{
			super(data);
		}

		override public function decode():void
		{
			super.decode();
			data.position = 4;
			isGold = (data.readByte() == 0);
			direct = data.readByte();
		}

		override public function get tag():int
		{
			return ProtocalConstants.SEE_MAP;
		}
	}
}
